//
//  HLNetwork.h
//  TestApp
//
//  Created by dllo on 16/10/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseNetworkApi.h"
#import "HLNetTool.h"


NS_ASSUME_NONNULL_BEGIN
@interface HLNetwork : NSObject

+ (NSURLSessionDataTask *)GET:(BaseNetworkApi *)request success:(nullable void (^)(id _Nullable result))success failure:(nullable void (^)(NSError *error))failure;

+ (nullable NSURLSessionDataTask *)POST:(BaseNetworkApi *)request
                                success:(nullable void (^)(id _Nullable result))success
                                failure:(nullable void (^)(NSError *error))failure;

@end
NS_ASSUME_NONNULL_END
